﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CinemaSystem
{
    public partial class dingdan : Form
    {
        public dingdan()
        {
            InitializeComponent();
        }
        public static int id = qrzf.id;
        public static string chang = qrzf.chang;
        public static string dating = qrzf.dating;
        public static string wei = qrzf.wei;
        Random zy = new Random();
       
        private void dingdan_Load(object sender, EventArgs e)
        {
            string sqlstr = string.Format("select * from Movie");
            DataTable dt = DBHelper.GetDataTable(sqlstr);
            label1.Text = dt.Rows[id]["Moviename"].ToString();
            label2.Text = chang;
            label3.Text = dating;
            label4.Text = wei;
            label6.Text = zy.Next(1000, 9999).ToString();
            label7.Text= zy.Next(1000, 9999).ToString();
            label8.Text = zy.Next(1000, 9999).ToString();

        }

        private void button1_Click(object sender, EventArgs e)
        {
            MainForm MainForm = new MainForm();
            MainForm.Show();
            this.Hide();
        }
    }
}
